import React from "react";
import "./style.css";
interface PropsType {
  title: string;
  word: string;
  price: number;
  height?: string | number;
}

export const GoodInfo: React.FC<PropsType> = ({
  title,
  word,
  price,
  height,
}) => {
  return (
    <div
      className="good-info"
      style={{ height: height ? height + "px" : "100%" }}
    >
      <h3>{title}</h3>
      <p>{word}</p>
      <div className="price">{price}</div>
    </div>
  );
};
